var app = {
	// touchend	open	触摸事件
	touchend: function(obj) {
		//定义touchend这个方法

		// var el = document.getElementById(obj.el);
		var el = document.querySelectorAll(obj.el); //获取多个节点，可以实现多个节点跳转一个页面
		el.forEach(function(index) {
			index.addEventListener('touchend', function() {
				plus.webview.open(obj.path, obj.el, {}, obj.effect, obj.time);
			})
		})
	},

	//	选项卡
	tab: function tab(obj) {
		opleft = document.getElementById(obj.elList);
		list = opleft.getElementsByTagName('li');

		elSection = document.getElementsByClassName(obj.elSection);

		for (var i = 0; i < list.length; i++) {
			list[i].index = i;
			list[i].onclick = function() {

				for (var j = 0; j < list.length; j++) {
					elSection[j].style.display = 'none';
					list[j].className = '';

				}
				elSection[this.index].style.display = 'flex';
				this.className = obj.elActive;
			}
		}
	},
}





// 轮播图
// 		 function Slideshow(id,distance){
// 		this.id=id;
// 		this.distance=distance;
// 	}
